import {
    request
} from "@/api/request.js"


//banjiajia 的接口还有问题，先用这个对接
const BASE_URL = 'https://ai-api.ytaiccg.com/api/system';
// const BASE_URL = 'https://ai-api.banjiajia.com/api/system';

//系统设置明细(根据id)
/**
 * @constructor
 */
const apiSystemSetting = (tag = '') => {
    return request({
        url: BASE_URL + "/setting/?tag="+tag
    })
}

//获取首页banner轮播广告
/**
 * @constructor
 */
const apiBannerView = (data = {}) => {
    return request({
        url: BASE_URL + "/banner/view",
        data,
        method: "GET"
    })
}


export {
    apiSystemSetting,           //系统设置明细
    apiBannerView,              //获取首页banner轮播广告
}